home *** CD-ROM | disk | FTP | other *** search
/ Safarir 3 / SafTV-CD3.iso / pc / Bonus / Dessins Animés / static / jeux / teletub.swf / scripts / DefineButton2_161 / BUTTONCONDACTION on(press).as
Text File  |  2001-11-21  |  2KB  |  48 lines

  1. on(press){
  2.    tellTarget("../Actions_Weapons")
  3.    {
  4.       gotoAndStop("FireWeapon");
  5.       play();
  6.    }
  7.    if(eval("/:Weapon") == "2")
  8.    {
  9.       if("0" < eval("/:Rounds"))
  10.       {
  11.          tellTarget("../Headshot")
  12.          {
  13.             gotoAndPlay(2);
  14.          }
  15.          Counter = "1";
  16.          while("10" >= Counter)
  17.          {
  18.             duplicateMovieClip("../CowSplat","Blood" add eval("/:Index"),eval("/:Index") + 16384);
  19.             setProperty("../Blood" add eval("/:Index"), _rotation, random("360"));
  20.             setProperty("../Blood" add eval("/:Index"), _X, getProperty("../Cursor", _X));
  21.             setProperty("../Blood" add eval("/:Index"), _Y, getProperty("../Cursor", _Y));
  22.             setProperty("../Blood" add eval("/:Index"), _xscale, "75");
  23.             setProperty("../Blood" add eval("/:Index"), _yscale, "75");
  24.             tellTarget("../Blood" add eval("/:Index"))
  25.             {
  26.                gotoAndPlay(2);
  27.             }
  28.             set("/:Index",eval("/:Index") + "1");
  29.             Counter += "1";
  30.          }
  31.          duplicateMovieClip("../Score+15","Score+15" add eval("/:Index"),eval("/:Index") + 16384);
  32.          setProperty("../Score+15" add eval("/:Index"), _X, getProperty("../Cursor", _X));
  33.          setProperty("../Score+15" add eval("/:Index"), _Y, getProperty("../Cursor", _Y) - "75");
  34.          tellTarget("../Score+15" add eval("/:Index"))
  35.          {
  36.             gotoAndPlay(2);
  37.          }
  38.          set("/:Index",eval("/:Index") + "1");
  39.          set("/:Score",eval("/:Score") + "15");
  40.          tellTarget("../Sounds_Announcer")
  41.          {
  42.             gotoAndPlay(2);
  43.          }
  44.          gotoAndPlay(19);
  45.       }
  46.    }
  47. }
  48.